<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1,IE=9">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="LEUR DE CHINE">
    <meta name="keywords"
          content="china reds,china blues,cashmere,corduroy,little bag,tartans,tweeds,stars,stripes,linen,leather,tassel travel bag,tartan,accessories">
    <title>上药神象农业物联网监控系统</title>
    <!--[if lte IE 8]>
    <script>window.location.href = 'http://cdn.dmeng.net/upgrade-your-browser.html?referrer=' + location.href;</script>
    <![endif]-->
    <script type="text/javascript" src="${basePath}/pc/lib/respond/respond.src.js"></script>
    <link href="${basePath}/pc/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="${basePath}/pc/css/font-awesome.min.css" rel="stylesheet">
    <link href="${basePath}/pc/lib/iconfont/css/iconfont.css" rel="stylesheet">
    <link href="${basePath}/pc/css/main.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="${basePath}/pc/lib/bootstrap/js/html5shiv.min.js"></script>
    <script src="${basePath}/pc/lib/bootstrap/js/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="wrp">
    <div class="lgn_o">
        <div class="lgn_m">
            <div class="cnt">
                <h1 class="logo"><img src="${basePath}/pc/img/logo.png" class="img-responsive" alt="神象物联网监控系统"></h1>
                <div class="pl">
                    <div class="pdg">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon"><i class="iconfont icon-account fnt2"></i></div>
                                    <input type="text" class="form-control input-lg" name="phone" placeholder="请输入手机号">
                                </div>
                            </div>
                            <!--form-group end-->
                            <div class="form-group">
                                <div class="input-group">
                                    <div class="input-group-addon"><i class="iconfont icon-password fnt2"></i></div>
                                    <input type="password" class="form-control input-lg" name="password" placeholder="请输入密码">
                                </div>
                            </div>
                            <!--form-group end-->
                            <div class="form-group frm_btn">
                                <button type="button" class="btn btn-lg btn-block lg_btn">登录</button>
                            </div>
                            <!--form-group end-->
                        </form>
                        <!--form-horizontal end-->
                        <div class="lnk">
                            <a href="${basePath}/pc/user/register">注册新用户</a>
                            <a href="${basePath}/pc/user/forgetPassword">忘记密码</a>
                        </div>
                        <!--lnk end-->
                    </div>
                    <!--pdg end-->
                </div>
                <!--lgn_pl end-->

            </div>
            <!--cnt end-->
            <footer class="ftr">Copyright<span class="cpy">&copy;</span>2017 上海上药神象健康药业有限公司</footer>
        </div>
        <!--lgn_m end-->
    </div>
    <!--lgn_o end-->
</div>
<!--wrp end-->
<script src="${basePath}/pc/lib/jquery/jquery.min.js"></script>
<script src="${basePath}/pc/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="${basePath}/common/js/common.js"></script>
<script src="${basePath}/common/js/ajax.js"></script>
<script src="${basePath}/common/js/form.js"></script>
<script>
    $(document).ready(function () {
        $(".frm_btn button").click(function () {
            AsyncPost("${basePath}/pc/user/login",getFormData($("form")),function (value) {
                if(value.code==0){
                    window.location.href = "${basePath}/pc/user/main";
                }else{
                    alert(value.msg);
                }
            })
        });
    });
</script>
</body>
</html>